/***************************************************************************
 *
 *   Copyright (C) 2002-2010 by Willem van Straten
 *   Licensed under the Academic Free License version 2.1
 *
 ***************************************************************************/

#include "Pulsar/Archive.h"
#include "Pulsar/Integration.h"
#include "Pulsar/Profile.h"
#include "Pulsar/Predictor.h"
#include "Pulsar/Parameters.h"
#include "Pulsar/Calibrator.h"

#include "CommandParser.h"
#include "tempo++.h"
#include "Error.h"

void Pulsar::Archive::set_verbosity (unsigned level)
{
  Calibrator::verbose = level;

  // level 4
  Profile::verbose     = (level >= 4);
  CommandParser::debug = (level >= 4);

  // level 3
  Tempo::verbose       = (level >= 3);
  Parameters::verbose  = (level >= 3);
  Predictor::verbose   = (level >= 3);

  // level 2
  Integration::verbose = (level >= 2);

  // all levels
  Archive::verbose = level;
}
